import request from '@/utils/request'

// 查询抄记录列表
export function listCheckMeter(query) {
  return request({
    url: '/service/checkMeter/list',
    method: 'get',
    params: query
  })
}

// 查询抄记录详细
export function getCheckMeter(id) {
  return request({
    url: '/service/checkMeter/' + id,
    method: 'get'
  })
}

// 新增抄记录
export function addCheckMeter(data) {
  return request({
    url: '/service/checkMeter',
    method: 'post',
    data: data
  })
}

// 修改抄记录
export function updateCheckMeter(data) {
  return request({
    url: '/service/checkMeter',
    method: 'put',
    data: data
  })
}

// 删除抄记录
export function delCheckMeter(id) {
  return request({
    url: '/service/checkMeter/' + id,
    method: 'delete'
  })
}
